<div class="panel-body">
    <div class="table-responsive">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <g:sortableColumn property="subject" title="标题"/>
                <g:sortableColumn property="user" title="用户"/>
                %{-- <g:sortableColumn property="activity" title="活动"/>
                <g:sortableColumn property="asset" title="资产"/>
                <g:sortableColumn property="contact" title="联系人"/>
                <g:sortableColumn property="campaign" title="市场活动"/>
                <g:sortableColumn property="opportunity" title="商机"/> --}%
                <g:sortableColumn property="createBy" title="创建人"/>
                <g:sortableColumn property="modifyBy" title="修改人"/>
                <g:sortableColumn property="createdDate" title="创建时间"/>
                <g:sortableColumn property="modifiedDate" title="修改时间"/>
                <g:sortableColumn  class="text-center" width="10%" colspan="2" property="buildTime" title="操作"/>
            </tr>
            </thead>
            <tbody>
            <g:each in="${noteList}">
                <tr>
                    <td>
                        <g:link action="show" controller="note" id="${it?.id}"
                                class="noteText">${it?.subject}</g:link>
                    </td>

                    <td>${it?.user}</td>
                    %{-- <td>${it?.activity?.name}</td>
                    <td>${it?.asset?.name}</td>
                    <td>${it?.contact?.fullName}</td>
                    <td>${it?.campaign}</td>
                    <td>${it?.opportunity?.serialNumber}</td> --}%
                    <td>${it?.createBy}</td>
                    <td>${it?.modifyBy}</td>
                    <td><g:formatDate date="${it?.createdDate}"
                                      format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                    <td><g:formatDate date="${it?.modifiedDate}"
                                      format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                    <td  class="text-center">
                        <g:link class="btn btn-xs btn-link ${this.notePermission?.name == 'Read' ? 'disabled' : ''}"
                                controller="note" action="edit"
                                id="${it?.id}">
                            <i class="fa fa-edit"></i>
                            编辑
                        </g:link>

                    </td>
                    <td  class="text-center">
                        <g:form controller="note" action="delete"
                                style="display: inline-block"
                                id="${it.id}"
                                method="DELETE">
                            <button class="deleteBtn btn btn-link btn-xs ${this.notePermission?.name == 'Read' ? 'disabled' : ''}" type="button">
                                <i class="fa fa-trash-o"></i>
                                删除
                            </button>
                        </g:form>
                    </td>
                </tr>
            </g:each>
            </tbody>
        </table>
    </div>
</div>